Source for file SC_GraphLine.php
Documentation is available at SC_GraphLine.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once($SC_GRAPHLINE_DIR .
"/SC_GraphBase.php");
$bgw =
BG_WIDTH, $bgh =
BG_HEIGHT, $left =
LINE_LEFT, $top =
LINE_TOP,
$area_width =
LINE_AREA_WIDTH, $area_height =
LINE_AREA_HEIGHT) {
parent::SC_GraphBase($bgw, $bgh, $left, $top);
$x_pos =
$this->left -
($text_width /
2);
$x_pos =
$this->left +
$this->area_width -
($text_width /
2) +
30;
imageline($this->image, $this->left, $this->top, $this->left, $this->top +
$this->area_height, $this->flame_color);
imageline($this->image, $this->left, $this->top +
$pos, $this->left +
$this->area_width, $this->top +
$pos, $this->grid_color);
imageline($this->image, $this->left, $this->top +
$pos, $this->left +
$sw, $this->top +
$pos, $this->flame_color);
$count =
count($arrPointList);
for($i =
0; $i <
$count; $i++
) {
$x =
$arrPointList[$i][0];
if(($i %
$interval) ==
0) {
function setMark($line_no, $left, $top, $size =
LINE_MARK_SIZE) {
$left, $top -
($size /
2),
$left +
($size /
2), $top,
$left, $top +
($size /
2),
$left -
($size /
2), $top,
imagesetpixel ($this->image, $left, $top +
($size /
2), $this->flame_color);
$num_width =
$this->getTextWidth($disp_number, FONT_SIZE);
$this->setText(FONT_SIZE, $this->left -
$num_width -
2, $this->top +
$pos -
(FONT_SIZE /
2), $disp_number);
$data_max =
max($arrData);
$figure =
strlen($data_max) -
1;
$tenval =
pow(10, $figure);
for($i =
0; $i <
$this->line_max; $i++
) {
for($i =
0; $i <
$this->line_max; $i++
) {
for($i =
0; $i <
$this->line_max; $i++
) {
$count =
count($arrPointList);
for($i =
0; $i <
$count; $i++
) {
$x =
$arrPointList[$i][0];
$y =
$arrPointList[$i][1];
if(isset
($arrPointList[$i +
1])) {
$next_x =
$arrPointList[$i +
1][0];
$next_y =
$arrPointList[$i +
1][1];
imageline($this->image, $x, $y, $next_x, $next_y, $this->arrColor[$line_no]);
$count =
count($arrPointList);
for($i =
0; $i <
$count; $i++
) {
$x =
$arrPointList[$i][0];
$y =
$arrPointList[$i][1];
$count =
count($arrPointList);
for($i =
0; $i <
$count; $i++
) {
$x =
$arrPointList[$i][0];
$y =
$arrPointList[$i][1];
$x_pos =
$x -
$text_width /
2;
for($i =
0; $i <
$count; $i++
) {
$x =
intval($this->left +
($scale_width *
($i +
1)));
Documentation generated on Tue, 28 Apr 2009 18:13:22 +0900 by phpDocumentor 1.4.2